package com.houg.testorderapi.common.constants;

/**
 * @Author: NALHOUG
 * @Time: 2019/11/8 15:01
 * @Explain: 常用的常量类
 */
public class Base {
    /**
     * Session 用户标记
     */
    public static final String ROLE_USER = "user";

    public static final String THIS_USER = "user";


    /**
     * 邮箱正则
     */
    public static final String EMAIL_REGULAR = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";
    /**
     * 手机号正则
     */
    public static final String PHONE_REGULAR = ("^[1][34578]\\d{9}$");


    /**
     * 关闭账户
     */
    public static final Integer ACCOUNT_FORBIDDEN = 0;
    /**
     * 禁封账户
     */
    public static final Integer ACCOUNT_OFF = 2;
    /**
     * 设置异常
     */
    public static final Integer ACCOUNT_EXCEPTION = 3;


    /**
     * 支付方式
     */
    public static final String ALI_PAY="ali";
    public static final String WE_CHAT_PAY = "weChat";
    public static final String UNION_PAY = "union";

    /**
     * 支付状态
     */
    public static final Integer HAVE_TO_PAY=1;
    public static final Integer NOT_PAY=1;
}
